<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 

<%-- <h2>kosta header<a href="${initParam.root}member/home.do">홈</a></h2><br> --%>
<div id="header">
<!-- <p align="center"> -->

<c:choose>
 	<c:when test="${sessionScope.mvo==null}">
 	<font color="gray" size="2px">JJOM's 사이트에 오신것을 환영합니다!</font>&nbsp;|&nbsp;
 	<a href="${initParam.root}member/login_view.moja"><font color="gray" size="2px">LOGIN</font></a>&nbsp;|&nbsp;
 	<a href="${initParam.root}member/register_view.moja"><font color="gray" size="2px">SIGN IN</font></a>&nbsp;|&nbsp;
 
 	</c:when>
<c:otherwise>
 <c:choose>
 	 <c:when test="${sessionScope.mvo.memberPoint==-1}"><font color="gray" size="2px">관리자님 로그인중</font>&nbsp;|&nbsp;
		<a href="${initParam.root }member/auth_manager_memberList.moja"><font color="gray" size="2px">회원명단보기</font></a>&nbsp;|&nbsp;
	</c:when>
	<c:otherwise>
		<font color="gray" size="2px">${sessionScope.mvo.memberId}님 로그인중</font>&nbsp;|&nbsp;
		<a href="${initParam.root }item/getCartList.moja?memberId=${sessionScope.mvo.memberId}"><font color="gray" size="2px">장바구니</font></a>&nbsp;|&nbsp;
		<a href="${initParam.root }item/showPurchasedItemList.moja?memberId=${sessionScope.mvo.memberId}"><font color="gray" size="2px">구매목록</font></a>&nbsp;|&nbsp;
		
		<c:if test="${sessionScope.mvo.memberSellAuthority== 'pass' }">
		<a href="${initParam.root }item/showUploadList.moja?memberId=${sessionScope.mvo.memberId}"><font color="gray" size="2px">등록상품목록</font></a>&nbsp;|&nbsp;
			<a href="${initParam.root}qna/getQnaList.moja"><font color="gray" size="2px">Q&A</font></a>&nbsp;|&nbsp;
		</c:if>
	</c:otherwise>
</c:choose>
<%--  <a href="${initParam.root}qna/getQnaList.moja"><font color="gray" size="2px">Q&A</font></a>&nbsp;|&nbsp; --%>
<a href="${initParam.root }member/logout.moja"><font color="gray" size="2px">LOGOUT</font></a>
</c:otherwise>
</c:choose>

<p id="header_logo">
<a href="${initParam.root }member/home.moja"><img src="${initParam.root }img/logo.jpg" alt="logo" height="130" ></a>
</p>
<!-- </p> -->
<nav id="main_navi">
   <ul>
      <li><a href="${initParam.root}member/home.moja"><font color="#FFFFFF">HOME</font></a></li>
      <li><a href="${initParam.root}info/board.moja?category=javaSE"><font color="#FFFFFF">JAVA</font></a></li>
      <li><a href="${initParam.root}info/board.moja?category=web"><font color="#FFFFFF">WEB</font></a></li>
      <li><a href="${initParam.root}info/board.moja?category=spring"><font color="#FFFFFF">SPRING</font></a></li>
      <li><a href="${initParam.root}info/board.moja?category=jdbc"><font color="#FFFFFF">JDBC</font></a></li>
   </ul>
</nav>
</div>
